import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/styles/common.scss';//清空所有样式
// TODO:部署删除mock
// import '@/mock/index.ts'
// 引入富文本编辑器和样式
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css' // import styles
import 'quill/dist/quill.snow.css' // for snow theme
import 'quill/dist/quill.bubble.css' // for bubble theme
Vue.config.productionTip = false
// 引入Quill组件设置允许图片缩放和图片缩放
import Quill from 'quill'; // 引入编辑器
import ImageResize from 'quill-image-resize-module'; // 引入图片缩放模块
import { ImageDrop } from 'quill-image-drop-module'; // 引入图片拖拽模块
Quill.register('modules/imageResize', ImageResize); // 注册图片缩放模块
Quill.register('modules/imageDrop', ImageDrop); // 注册图片拖拽模块



// 组件全局注册
Vue.use(ElementUI)
Vue.use(VueQuillEditor)


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
